]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Really use the right getter
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Jan 2013 19:21:30 +0000 (14:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Jan 2013 19:21:30 +0000 (14:21 -0500)
Doh, it is actually a uint, not an int.

js/ui/screenShield.js

index 7c6fcd5ce33c6c24e31982a04774a48a63a62233..699fb96f3264cd56eebfef55e908a9c0f3238fad 100644 (file)
@@ -641,7 +641,7 @@ const ScreenShield = new Lang.Class({
                 let elapsedTime = (GLib.get_monotonic_time() - this._activationTime) / 1000000;
                 let shouldLock = lightboxWasShown &&
                     this._settings.get_boolean(LOCK_ENABLED_KEY) &&
-                    (elapsedTime >= this._settings.get_int(LOCK_DELAY_KEY));
+                    (elapsedTime >= this._settings.get_uint(LOCK_DELAY_KEY));
                 if (shouldLock || this._isLocked) {
                     this.lock(false);
                 } else if (this._isActive) {